package com.dbh.algorithm.future;

/**
 *  客户端
 *
 * @author dongbanghui
 * @date 2018/06/25
 */
public class Client {

    public Data request(final String queryStr){
        final FutureData futureData = new FutureData();
        new Thread(() -> {
            RealData realData = new RealData(queryStr);
            futureData.setRealData(realData);
        }).start();
        return futureData;
    }

}
